#!/bin/bash
cd $(dirname $0);
vir_name=$1

if [ $# -eq 0 ];then
   echo "There is no machien name!!!"
   exit 127;
fi   
mkdir -p machines;
set +x;

./ovftool/ovftool --powerOffSource -o --X:logFile=./machines/${vir_name}.log --noSSLVerify  vi://root@192.168.31.215/${vir_name} ./machines/${vir_name}_`date +%Y%m%d`.ova;
